TextFinder

interface TextFinder

Allows finding text on the loaded web page.

Functions

Link copied to clipboard
abstract fun browser(): Browser
Returns the Browser instance of this text finder.
Link copied to clipboard
abstract fun find(text: String, consumer: Consumer<FindResult>)
Performs search of the given text, highlights all matches and selects the first match on the currently loaded web page.
abstract fun find(text: String, options: FindOptions, consumer: Consumer<FindResult>)
Performs search of the given text with the given options, highlights all matches and selects the first or the last (depending on the given isSearchBackward flag) match on the currently loaded web page.
Link copied to clipboard
Stops finding and clears the highlighting of the found matches.
Link copied to clipboard
Stops finding and keeps the currently highlighted match selected.